﻿namespace Wips.Infrastructure.Model
{
    public class DirectoryModel
    {

        /// <summary>
        /// 类型
        /// </summary>
        public EnumDirectorType Type { get; set; }

        /// <summary>
        /// 路径
        /// </summary>
        public string Path { get; set; } = "";


        /// <summary>
        /// 是否能读
        /// </summary>
        public bool CanRead { get; set; }

        /// <summary>
        /// 是否能写
        /// </summary>
        public bool CanWrite { get; set; }

        /// <summary>
        /// 文件大小
        /// </summary>
        public string Size { get; set; } = "";
        
        /// <summary>
        /// 获取kb的大小
        /// </summary>
        public double KbSize { get; set; }

    }


    public enum EnumDirectorType
    {
        /// <summary>
        /// 文件
        /// </summary>
        File = 1,

        /// <summary>
        /// 文件夹
        /// </summary>
        Directory = 2
    }
}
